<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0"
    />
    <script src="lib/vue.global.js"></script>
    <link rel="stylesheet" href="style.css" />
    <title>Vue Computed 计算属性</title>
  </head>
  <body>
    <div id="app">
      <div class="question">
        <p>问：Vue 是一个什么样的框架？</p>
        <p v-show="showAnswer" class="answer">
          答：Vue 是一套用于构建用户界面的渐进式框架。
        </p>
        <button @click="showAnswer = !showAnswer">
          {{ showAnswer ? "隐藏" : "显示" }}答案
        </button>
      </div>
    </div>
    <script src="index.js"></script>
  </body>
</html>
